//
//  ZHMainstayViewController.m
//  ZHS_UCDemo
//
//  Created by Emrys on 2016/11/14.
//  Copyright © 2016年 Emrys. All rights reserved.
//

#import "ZHMainstayController.h"

#import "ColorDefine.h"

#import "UIViewController+MMDrawerController.h"

@interface ZHMainstayController ()

@end

@implementation ZHMainstayController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self setBaseStyle];
}

- (void)setBaseStyle {
    [self setBaseNavStyle];
}

- (void)setBaseNavStyle {
    
    self.navigationController.navigationBar.barTintColor = kNav_BlueColor;
    self.navigationController.navigationBar.tintColor = kNav_TintColor;
    self.navigationController.navigationBar.titleTextAttributes = @{
                                            NSForegroundColorAttributeName: kNav_TitleTextColor
                                                                    };
        
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"icon_main_sideslip"]
                                                                             style:UIBarButtonItemStylePlain
                                                                            target:self
                                                                            action:@selector(showDrawerMenu)];
}

- (void)showDrawerMenu {
    [self.mm_drawerController toggleDrawerSide:MMDrawerSideLeft animated:YES completion:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
